.custom-modal {
  :global(.ant-modal-confirm-title) {
    color: #16202d;
    font-size: 19px;
    font-family: Roboto Condensed;
    font-weight: 700;
    transform: translateY(-1px);
  }

  :global(.anticon) {
    width: 18px;
    margin-inline-end: 8px;
  }

  :global(.ant-modal-confirm-content) {
    transform: translateX(-28px);
    margin: 3px 0 10px;
  }

  :global(.ant-modal-close:hover) {
    background-color: transparent;
  }

  :global(.ant-modal-confirm-btns) {
    :global(.ant-btn) {
      border-radius: 16px;
      font-family: Roboto Condensed;
      font-weight: 700;
      border: none;
    }

    :global(.ant-btn-default) {
      background-color: #f2f3f5;
      color: #464646;

      &:hover {
        color: #464646;
      }
    }
  }
}

.custom-modal-rtl {
  :global(.ant-modal-confirm-content) {
    transform: translateX(28px) !important;
  }
}

.pledge-modal {
  :global(.ant-modal-content) {
    padding: 0;
  }

  :global(.ant-modal-header) {
    padding: 18px 24px;
    border-bottom: 1px solid #dcdfe6;

    :global(.ant-modal-title) {
      color: #16202d;
      font-family: 'Roboto Condensed';
      font-size: 22px;
      font-style: normal;
      font-weight: 700;
      line-height: 22px;
    }
  }

  :global(.ant-modal-body) {
    padding: 0 24px;
    max-height: 660px;
    overflow: auto;

    p {
      display: flex;
      gap: 5px;

      span {
        color: #464646;
        font-family: Avenir;
        font-size: 14px;
        font-weight: 400;
        line-height: 21px;
      }
    }
  }
}

.form-rtl {
  .setup-bg,
  .button-icon {
    transform: scaleX(-1) !important;
  }

  .form-details-signatures {
    .form-details-signatures-item:nth-child(3n + 1) {
      border-right: 1px solid #e5e6eb !important;
    }

    .form-details-signatures-item {
      border-left: 1px solid #e5e6eb !important;
      border-right: none !important;
    }
  }

  .custom-date {
    :global(.ant-picker-input) {
      :global(input::placeholder) {
        font-family: Cairo !important;
      }
    }
  }
}

.form {
  display: flex;
  flex-direction: column;
  width: 100%;

  .form-main {
    width: 900px;
    margin: 0 auto;
    height: auto;

    /* line */
    .form-line {
      width: calc(100% - 24px);
      border-bottom: 2px dashed #d6dce0;
    }

    /* setup */
    .form-setup {
      padding-top: 100px;
      display: flex;
      justify-content: space-between;
      margin-bottom: 50px;

      .setup-item {
        width: 33.3%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        height: 100px;

        &:first-child {
          .setup-bg {
            width: 106%;
            transform: translateX(10px);
          }
        }

        &:last-child {
          .setup-bg {
            width: 106%;
            transform: translateX(-10px);
          }
        }

        .setup-bg {
          height: 100%;
          top: 0;
          position: absolute;
          width: 109%;
          z-index: 1;
          filter: drop-shadow(0 2.6px 46.6px rgba(31, 68, 101, 10%));
        }

        .setup-icon {
          width: 45px;
          height: 45px;
          z-index: 2;
        }

        .setup-title {
          margin-left: 10px;
          white-space: nowrap;
          color: #c6c6c6;
          font-family: Avenir;
          font-size: 15px;
          line-height: 15px;
          font-weight: 400;
          z-index: 2;
        }

        .setup-title-complete {
          font-weight: 800;
          color: #9db2bf;
        }
      }
    }

    /* content */
    .form-content {
      :global(.ant-form) {
        :global(.ant-form-item) {
          margin-bottom: 14px;

          :global(.ant-input) {
            height: 36px;
            padding: 0 16px;
          }

          :global(textarea) {
            min-height: 125px !important;
            max-height: 300px !important;
            padding: 10px 16px !important;
          }

          :global(.ant-picker) {
            height: 36px;
            padding: 0 16px;

            :global(input::placeholder) {
              color: #a3a8a8;
              font-family: Avenir;
            }
          }
        }

        :global(.ant-select) {
          height: 36px;
          align-items: center;

          :global(.ant-select-selector) {
            padding: 0 16px;

            :global(.ant-select-selection-search) {
              inset-inline-start: 16px;
              inset-inline-end: 16px;

              :global(.ant-select-selection-search-input) {
                height: 36px;
              }
            }
          }
        }

        :global(.ant-input::placeholder) {
          color: #a3a8a8;
          font-family: Avenir;
        }

        :global(.ant-select-selection-placeholder) {
          color: #a3a8a8;
          font-family: Avenir;
        }

        :global(.ant-form-item-explain-error) {
          margin-top: 2px;
        }
      }

      .form-title-h4 {
        color: #16202d;
        font-family: Roboto Condensed;
        font-size: 19px;
        font-weight: 700;
        line-height: 27px;
      }

      .form-item-label,
      .form-item-label-small {
        color: #16202d;
        font-family: Roboto Condensed;
        font-weight: 700;
        margin-bottom: 6px;
        gap: 6px;
        display: flex;
        align-items: center;
      }

      .form-item-label {
        font-size: 16px;
      }

      .form-item-label-small {
        font-size: 14px;
      }

      .form-item-label-required {
        color: #e93323;
        font-weight: 700;
        font-size: 16px;
        font-family: Roboto Condensed;
      }

      .form-alert-icon {
        cursor: pointer;
        width: 17px;
        height: 17px;
      }

      /* form-button */
      .form-button {
        width: 100%;
        margin: 32px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }

      .form-button-left {
        display: flex;
        gap: 20px;
      }

      .form-button-pre,
      .form-button-next,
      .form-button-disabled {
        display: flex;
        padding: 10px 22px;
        align-items: center;
        gap: 8px;
        border-radius: 100px;
        width: fit-content;
        cursor: pointer;

        .button-icon {
          width: 14px;
          height: 12px;
        }

        .button-text {
          font-family: Roboto Condensed;
          font-size: 16px;
          font-weight: 700;
          color: #fff;
        }
      }

      .form-button-pre {
        border: 1px solid #44c5e4;

        .button-text {
          color: #44c5e4;
        }
      }

      .form-button-next {
        background: #44c5e4;
      }

      .form-button-disabled {
        background: #c6c6c6;
        cursor: not-allowed;
      }

      /* personal */
      .form-personal {
        margin-bottom: 60px;

        .form-personal-witnesses {
          .form-personal-witnesses-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: calc(100% - 24px);
            margin: 10px auto;

            .form-personal-witnesses-header-ri {
              display: flex;
              align-items: center;
              gap: 18px;

              .form-personal-witnesses-del {
                width: 20px;
                height: 20px;
                cursor: pointer;
              }

              .form-personal-witnesses-ocr {
                color: #44c5e4;
                font-family: Roboto Condensed;
                font-size: 16px;
                font-weight: 500;
                cursor: pointer;
                display: flex;
                align-items: center;
                gap: 5px;

                .form-personal-witnesses-ocr-icon {
                  width: 17px;
                }
              }
            }
          }

          .form-personal-witnesses-add {
            color: #44c5e4;
            font-family: Tajawal;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
          }
        }
      }

      /* details */
      .form-details {
        margin-bottom: 60px;

        :global(.ant-upload-select) {
          background-color: #fff;

          :global(.ant-upload) {
            width: 100%;
            height: 100%;

            .upload-button {
              width: 100%;
              height: 100%;
              cursor: pointer;
              display: flex;
              align-items: center;
              justify-content: center;
              flex-direction: column;
            }
          }
        }

        .form-details-investigation {
          .form-title-h4 {
            display: inline-block;
            margin-bottom: 15px;
          }

          .form-details-investigation-item {
            position: relative;
            padding: 20px 20px 0.1px;
            box-sizing: border-box;
            background: #fafafa;
            margin-bottom: 20px;
          }

          .form-details-investigation-del {
            position: absolute;
            top: 20px;
            width: 20px;
            height: 20px;
            cursor: pointer;
          }

          .form-details-investigation-add {
            color: #44c5e4;
            font-family: Tajawal;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
          }
        }

        .form-details-signatures {
          display: flex;
          flex-wrap: wrap;

          .form-details-signatures-item:nth-child(3n + 1) {
            border-left: 1px solid #e5e6eb;
          }

          .form-details-signatures-item:nth-child(-n + 3) {
            .form-details-signatures-header {
              border-top: 1px solid #e5e6eb;
            }
          }

          .form-details-signatures-item {
            width: 33.33%;
            border-right: 1px solid #e5e6eb;
            border-bottom: 1px solid #e5e6eb;
            background: #fff;

            .form-details-signatures-header {
              border-bottom: 1px solid #e5e6eb;
              background: #f2f3f5;
              height: 30px;
              display: flex;
              align-items: center;
              justify-content: center;
              width: 100%;

              .form-details-signatures-title {
                color: #1d2129;
                font-family: Avenir;
                font-size: 14px;
              }
            }

            .form-details-signatures-body {
              height: 200px;
            }
          }
        }

        .form-details-pledge {
          background: #fafafa;
          padding: 20px 20px 5px;

          .form-details-pledge-title {
            margin-bottom: 18px;
            display: inline-block;
            width: 100%;

            .form-details-pledge-text {
              width: 100%;
              margin-top: 5px;
              color: #464646;
              font-family: Avenir;
              font-size: 14px;
              font-weight: 500;
              line-height: 20px;
              display: flex;
              align-items: center;

              .form-details-pledge-no {
                display: inline-block;
                text-overflow: ellipsis;
                overflow: hidden;
                white-space: nowrap;
                width: 87%;
              }

              .form-details-pledge-more {
                color: #44c5e4;
                font-size: 14px;
                font-weight: 800;
                cursor: pointer;
              }
            }
          }

          .form-details-pledge-signature {
            border-radius: 4px;
            border: 1px solid #dcdfe6;
            background: #fff;
            width: 440px;
            height: 200px;

            .form-details-pledge-signature-body {
              width: 100%;
              height: 100%;
            }
          }
        }
      }

      /* closure */
      .form-closure {
        margin-bottom: 60px;

        .form-closure-action {
          .form-title-h4 {
            display: inline-block;
            margin-bottom: 15px;
          }

          .form-closure-action-item {
            position: relative;
            padding: 20px 20px 0.1px;
            box-sizing: border-box;
            background: #fafafa;
            margin-bottom: 20px;
          }

          .form-closure-action-del {
            position: absolute;
            top: 20px;
            width: 20px;
            height: 20px;
            cursor: pointer;
          }

          .form-closure-action-add {
            color: #44c5e4;
            font-family: Tajawal;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
          }
        }
      }
    }
  }
}
